package com.scut.fy.auth.feign.fallback;

import com.scut.fy.auth.feign.SysUserService;
import com.scut.fy.common.web.util.HttpResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * TODO
 *
 * @author JY
 * @version 1.0
 * @date 2021/8/20
 */
@Service
public class SysUserServiceFallback implements SysUserService {
    private static final Logger log = LoggerFactory.getLogger(SysUserServiceFallback.class);
    @Override
    public HttpResult<Map<String, Object>> findUserByUserId(Integer userId) {
        log.error("调用{}异常", "findUserByUserId");
        return null;
    }

    @Override
    public HttpResult<Map<String, Object>> findUserByUserName(String userName) {
        log.error("调用{}异常", "findUserByUserName");
        return null;
    }
}
